import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.ListIterator;

public class Main{

    public static void main(String[] args) {


    }




    public static void main1(String[] args) {
        myArrayList<Integer> myArrayList = new myArrayList<>();

        myArrayList.add(1);//增加
        myArrayList.add(1,2);
        myArrayList.display();//展示

        System.out.println("=====");

        myArrayList.remove(2);//移除
        myArrayList.set(0,3);//设置

        boolean ret = myArrayList.contains(1);//查询是否包含
        System.out.println(ret);

        int pos = myArrayList.indexOf(0);//查找位置
        System.out.println(pos);

        int e = myArrayList.get(0);//获取

        System.out.println(e);

        myArrayList.clear();//回收顺序表

        myArrayList.display();

    }
}